<?php
class Course extends Model{
	protected $table_name = 'shouce_course';
	
	public $tree = array(
		'php'=>array(
				'php基础'=>array(
					''=>'',
				),
				'php高级'=>array(
					''=>'',
				),
			),
			
		'cpp'=>array(
				''=>'',
			),
	);
	
	
	
	public function power() {
		$line = 100;
		$power = obj('User')->get_power();
		if($power > $line ) return true;
		return false;
	}
	
}
?>